package org.lili.semanticmodel;

/**
 * @author lili
 * @description 顶点
 * @create 2018-04-22 下午3:24
 * @since
 **/
public class Vertex implements Comparable<Vertex> {

    private String label;

    public Vertex(String label) {
        this.label = label.toUpperCase();
    }

    @Override
    public int compareTo(Vertex o) {
        return (this.getLabel().compareTo(o.getLabel()));
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}
